package com.example.sherlockzhong.plush_v2.CardBeans;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created by DosonLeung on 2014/8/11.
 */

public class ScheduleBean {

    private String headers[] = {"1,2节", "3,4节", "5,6节", "7,8节", "9,10节", "11,12,13节"};
    private String contents[] = {"", "", "", "", "", ""};
    private String addresses[] = {"", "", "", "", "", ""};
    private String teacher[] = {"", "", "", "", "", ""};
    private String week[] = {"", "", "", "", "", ""};
    private List<Map<String, Object>> scheduleList = null;

    public String[] getHeaders() {
        return headers;
    }

    public void setHeaders(String[] headers) {
        for (int i = 0; i < 6; i++) {
            this.headers[i] = headers[i];
        }
    }

    public String[] getContents() {
        return contents;
    }

    public void setContents(String[] contents) {
        for (int i = 0; i < 6; i++) {
            this.contents[i] = contents[i];
        }
    }

    public String[] getAddresses() {
        return addresses;
    }

    public void setAddresses(String[] addresses) {
        for (int i = 0; i < 6; i++) {
            this.addresses[i] = addresses[i];
        }
    }

    public String[] getTeacher() {
        return teacher;
    }

    public void setTeacher(String[] teacher) {
        for (int i = 0; i < 6; i++) {
            this.teacher[i] = teacher[i];
        }
    }

    public String[] getWeek() {
        return this.week;
    }

    public void setWeek(String[] week) {
        for (int i = 0; i < 6; i++) {
            this.week[i] = week[i];
        }
    }

    public List<Map<String, Object>> generateScheduleListData() {
        int length = 6;
        this.scheduleList = new ArrayList<Map<String, Object>>();
        for (int i = 0; i < length; i++) {
            Map<String, Object> listItems = new HashMap<String, Object>();
            listItems.put("header", this.headers[i]);
            listItems.put("content", this.contents[i]);
            listItems.put("address", this.addresses[i]);
            listItems.put("teacher", this.teacher[i]);
            listItems.put("week", this.week[i]);
            this.scheduleList.add(listItems);
        }
        return this.scheduleList;
    }
}
